package cn.com.xf.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import cn.com.xf.domain.TblOaDuty;
import cn.com.xf.domain.TblOaDutySchedule;
import cn.com.xf.web.form.DutyForm;

public interface DutyService {

	List<TblOaDuty> selectDutys(TblOaDuty tblOaDuty);

	int selectDutyCount(String siteId, String deptId, Date dutyDate);

	List<TblOaDuty> selectDutys(int begin, int pageSize, String siteId, String userId, Date dutyDate);

	TblOaDuty selectDutyById(String id);

	String selectDeptIdByUser(String name);

	Map<String, String> updateDuty(DutyForm form, String realId) throws Exception;

	int deleteDuty(String dutyId);

	int insertDuty(TblOaDuty duty);

	List<Map<String, Object>> datagridSchedules(String siteId, String deptId);

	String datagridTelNo(String userId);

	int updateUserTelNo(String userId, String userTelNo);

	List<TblOaDutySchedule> selectSchedules(String siteId, String deptId);

	TblOaDutySchedule selectScheduleById(String id);

	String datagridDeptTelNo(String siteId,String deptId);

	TblOaDutySchedule selectScheduleTime(String scheduleId);

	int updateSchedule(DutyForm form, String realId);

	int updateDeptTelNo(String siteId, String deptId, String deptTelNo);

	int insertSchedule(TblOaDutySchedule schedule);

	int deleteSchedule(String idStr);

	List<Map<String, Object>> datagridDepts(String siteId);

	List<Map<String, Object>> datagridUsers(String siteId, String deptId);

	String selectSiteIdByUser(String empId);

	List<TblOaDuty> copyDutys(TblOaDuty tblOaDuty);

}
